$(function () {
	$(".login>ul>li:eq(0)").click(function () {
		var ctrl = (navigator.userAgent.toLowerCase()).indexOf("mac") != -1 ? "Command/Cmd" : "CTRL";
		if (document.all) {
			window.external.addFavorite(location.href, document.title);
		} else {
			if (window.sidebar) {
				window.sidebar.addPanel(document.title, location.href, "");
			} else {
				alert("\u60a8\u53ef\u4ee5\u5c1d\u8bd5\u901a\u8fc7\u5feb\u6377\u952e" + ctrl + " + D \u52a0\u5165\u5230\u6536\u85cf\u5939~");
			}
		}
	});
	$(".login>ul>li:eq(1)").click(function () {
	});
	$.get("/Login/LoginCheck?t=" + Math.random().toString(), null, function (data) {
		if (data[0] == "1") {
			var Nodelist = $(".login>ul>li:gt(1)").show();
			Nodelist.eq(0).hide();
			Nodelist.eq(1).hide();
			Nodelist.last().html("\u6b22\u8fce\u60a8\uff0c" + data.substr(1) + "\uff01");
		} else {
			var Nodelist = $(".login>ul>li:gt(2)").hide();
			Nodelist.eq(0).show();
			Nodelist.last().html("");
		}
	}, null);
});